package edu.sctu.zcy.month201505.day20150504.abstractOne;

/**
 * Created by user24 on 2015/5/4.
 */
public class AnimalDemo {
    public static void main(String[] args) {
        Cat cat = new Cat();
        Dog dog = new Dog();
        cat.cry1();
        makeCry(cat);

        dog.cry1();
        makeCry(dog);
    }

    public static void makeCry(Animal a) {
        a.cry();

    }
}
